package com.wl.bbs.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wl.bbs.dao.LinkMapper;
import com.wl.bbs.entity.Link;
import com.wl.bbs.service.ILinkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LinkServiceImpl extends ServiceImpl<LinkMapper, Link> implements ILinkService {

    @Autowired
    private LinkMapper linkMapper;

    public List<Link> getLinks() {
        return linkMapper.selectLinks();
    }
}